<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .back{
            width: 500px;
            height: 500px;
            border: 2px solid skyblue;
            background: url(../static/image/4.jpeg) no-repeat;
            background-size: 300px 200px;
            /* 让图片完全覆盖盒子，部分图片会显示不全 */
            /* background-size: cover; */
            /* 宽度高度等比例拉伸，当宽度高度铺满盒子就不会在拉伸，可能会有空白区域 */
            /* background-size: contain; */
        }
        img{
            object-fit: cover;
            width: 300px;
            height: 300px;
        }
        .flex{
            width: 500px;
            display: flex;
            background: orangered;
            justify-content: space-between;
        }
        .flex .item{
            background: orangered;
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
    <div class="back"></div>
    <img src="../static/image/4.jpeg">

    <div class="flex">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">2</div>
        <div class="item">2</div>
        <div class="item">2</div>
    </div>
</body>
</html>